package com.sjy.shopmall.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
public class CommentDTO {

    @Data
    public static class CommentInfo
    {
        private String comments;
        private String userName;
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        private Date orderDate;
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        private Date commentDate;
        private Integer rate;
    }

    private BigDecimal avgRate;
    private List<CommentInfo> commentInfoList;

}
